package com.samphanie.auiu.mbg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.samphanie.auiu.mbg.model.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 菜单Mapper接口
 *
 * @author zsy
 * @date 2021-05-18
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 查询菜单列表
     *
     * @param query
     * @return 菜单集合
     */
    List<SysMenu> selectSysMenuList(@Param("params") Map<String, String> query);

    /**
     * 查询菜单分页列表
     *
     * @param query
     * @return 菜单集合
     */
    IPage<SysMenu> selectSysMenuList(Page<SysMenu> page, @Param("params") Map<String, String> query);
}
